<div class="right-link">
<div class="data ser-comments clearfix">
		<p class="project-author">
			<?php echo $this->Auth->user('username').', '.__l(' your public profile page is here').':';?>
			<?php
				$profile_url= Router::url(array('controller' => 'users', 'action' => 'view', $this->Auth->user('username')), true);
				echo $this->Html->link($profile_url, array('controller' => 'users', 'action' => 'view', $this->Auth->user('username')),array('target' => '_blank', 'title' => $this->Auth->user('username')));
				if($this->Auth->user('is_openid_register')):
					$reg_type_class='open-id';
				elseif($this->Auth->user('is_facebook_register')):
					$reg_type_class='facebook';
				elseif($this->Auth->user('is_twitter_register')):
					$reg_type_class='twitter';
				endif;
			?>
			<?php if(!empty($reg_type_class)): ?>
				<p class="<?php echo $reg_type_class; ?>">
					<?php echo sprintf(__l('This account is associated with your %s profile'), $reg_type_class); ?>
				</p>
			<?php endif; ?>
		</p>
		<p class="meta posted-date"><span class="highlight-content"><?php echo __l('Joined: '); ?></span><?php  echo $this->Html->cDateTimeHighlight($user['User']['created']); ?></p>
		<?php
			$location = array();
			$place = '';
			if (!empty($user['UserProfile']['City']['name'])) :
				$location[] = $user['UserProfile']['City']['name'];
			endif;
			if (!empty($user['UserProfile']['Country']['name'])):
				$location[] = $user['UserProfile']['Country']['name'];
			endif;
			$place = implode(', ', $location);
		?>
		<?php if ($place): ?>
			<?php if(!empty($user['UserProfile']['Country']['iso2'])): ?><address><span class="flags flag-<?php echo strtolower($user['UserProfile']['Country']['iso2']); ?>" title ="<?php echo $user['UserProfile']['Country']['name']; ?>"><?php echo $user['UserProfile']['Country']['name']; ?></span><?php echo  ' ' . $place; ?></address><?php endif; ?>
		<?php endif; ?>
	</div>
</div>